<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="Styles/default.css" rel="stylesheet" type="text/css" media="all" />
        <title>Form</title>
    </head>

    <body>
        <h1>Insertar Curso</h1>
        <form:form method="post" action="procesaInsertarCurso.htm" commandName="cursoC">
            <table cellspacing="2" cellpadding="3" border="1" width="50%" style="margin:0 auto" align="center">
                <tr>
                    <td width="50%">Codigo</td>
                    <td width="50%">
                        <input type="text" name="codCurso" placeholder="Ingrese el codigo" required value="$cursoC.codCurso}"/>
                    </td>
                </tr>
                <tr>
                    <td width="50%">Descripcion</td>
                    <td width="50%">
                            <form:input path="descCurso" />
                    </td>
                </tr>
                <tr>
                    <td width="50%">Horas de Teoria</td>
                    <td width="50%">
                       <form:input path="horaTeoria" />
                    </td>
                </tr>
                <tr>
                    <td width="50%">Horas de Practica</td>
                    <td width="50%">
                        <form:input path="horaPractica" />
                    </td>
                </tr>
                <tr>
                    <td>Creditos :</td>
                    <td width="50%">
                        <form:input path="creditos" />
                    </td>
                </tr>
                <tr>
                    <td width="50%">&nbsp;</td>
                    <td width="50%">
                        <input type="submit" value="Enviar"/>
                    </td>
                </tr>
            </table>
        </form:form>
        <a href="index.htm">inicio</a>
    </body>
</html>